#ifndef __DRV_SG90_H__
#define __DRV_SG90_H__
#include "stm32f4xx.h"
#include "stdio.h"
extern volatile uint8_t flag;
void drv_sg90_init(void);
void SG90_SetAngle1(uint16_t angle);
void SG90_SetAngle2(uint16_t angle);
void SG90_SetAngle3(uint16_t angle);
void SG90_SetAngle4(uint16_t angle);
void SG90_Forward(void);
void SG90_Back(void);
void SG90_Turnleft(void);
void SG90_Turnright(void);
void SG90_Liedown(void);
void SG90_Sitdown(void);
void SG90_Stop(void);

#endif //__DRV_SG90_H__
